TemplateForensics: remove references to rules from the class to separate concerns