Removing rootScope, scope in methods, code smell