We are looking at moving away from chucking `vars` through as many hoops as possible and using `requirejs` to do our DI.
 
Perhaps look at including [config module](https://github.com/guardian/frontend/blob/master/common/app/assets/javascripts/utils/config.js) in the loader instead (or perhaps abstracting the switches).