exit() is ineffectual during 'ur test use'
Combine duplicate code
Change handling of id_generator for class metadata

If a class does not specify id_generator, and it has the same data source as
its parent, then it inherits the parent value during initialization.