Refactoring for Doctrine Managers