Extract class EntityManager