perhaps extract the headers into a value. i.e. `angular.module('values').values(function () { return defaultHeaders})`. Perhaps this is hiding too much. up to you.