Remove references to _rules

The extra rules dictionary was too opaque and had weird side effects (e.g.
saving into the workspace?).