Problem/Motivation
Followup #2999721: [META] Deprecate the legacy include files
Proposed resolution
Move function logic into the entity type manager service.
Remaining tasks
- move logic into appropriate service method
- deprecate function
API changes
New method in \Drupal\Core\Entity\EntityTypeManager