lib/classifier: Separate cls_rule internals from the API.