Also, probably should be handled in the config factory, not in the entity manager factory.