Classify custom predicates (class 2) by inheriting from existing
grammars and shadowing base rules.