Decomposition of codegen classes.
Tweaks to yaml schema.