title: How to break large Service Factory() into smaller blocks of code?
body: <p>I am rather new to AngularJS and as I am writing my code, particularly my Services .factory()'s are getting quite large.  As an example, in one factory I have 4 very large promises..and at the end I bundle them all into a $q.all([promise1(),promise2(),promise3(),promise4()]).then(function(response). It all works cleanly...however, as the factory grows and grows its getting harder and harder to managed each section of code.</p>
  
  <p>I am looking a method that will allow me to clean up this giant .factory() and allow to me load the code into the factory from an external file OR break the .factory up but still be able to use $q.all(...) to have them all process at once...or some other method I am not thinking/aware of.</p>
  
  <p>This is all for my own sanity in managing the code...as well as activating or deactivating specific promises by simply commenting out one line which in turn doesn't need to load all those bytes of code not being used.</p>