@classmethod
def register_rule(cls, rule_func):
    """Utility function used by the register_rule decorator to register a
        lambda/function to instantiate a rule."""
    cls._rules_factories.append(rule_func)
