Removed unused code
No longer pass EntityManager as an argument