Remove $rootScope reference.