Vastly simplify logic in RuleProcessor