Remove depreciated EntityManager