I think we ought to attach this to ```$rootScope``` in ```bastion.module.js``` in order to adhere to DRY.