Remove method for creating entity manager.