Move Formula.class_s to Formulary
Cache generated class names
Avoid ancestors.include?, klass1 < klass2 is faster