Switch attribute helper methods to take a rule reference.