Removing unnecessary entityManager parameter.