Start refactoring toward using a repository instead of calling $http from inside the controllers