Finish refactoring event-specific code out of RuleSet into Listeners.