Many enterprises use Drupal for the flexibility it offers. This comes at a cost, every Drupal site is very different from each other. Patterns emerge that are not reused or standarized across different projects.
This video proposes a code structure and workflow when working around entities with Typed Entity. This has helped me in the past to achieve more maintainability and modularity in my Drupal projects.