Work toward dropping the rules object.

In favor of a _rule function that performs lookups appropriately in the
all_rules object. Once I'm confident this overall change has succeeded,
it makes sense to rename all_rules to just rules.