Factoring Out of AngularJS Controller & Service Functionality