It seems like we may want to put this inside app.js instead as it's not really a function of each and every provider.