Adding class generator to move code rendering out of BackwardCompatibility class