Moving factories to DoctrineModule service map as of doctrine/DoctrineModule#226