controllers dependencies refactoring