Remove dependency from Doctrine ORM