Refactored Term syntax processing into rulebooks and a DSL for contributing to several of them at once.