Tweak class definition runtime function.