Generate two classes instead of one: the base class will be regenerated with each run, the extension class will be (but currently is not) preserved.