Refactor the reputation rule.