Populate the rule_class_key field of each rule; and for the first rule with
a given rule_class_key, also populate its rule_class_info proto field. The
rule_class_key field uniquely identifies a rule class, and the
rule_class_info field is a Stardoc-format rule class API definition.