Remove $rule as a parameter to resolveScope()