Moving data out of rootScope