Allowing usage of `Doctrine\ORM\EntityManager` service with the new factory logic