Remove the hard dependency on the default entity manager - use ManagerRegistry instead