[#2945] Deprecate the <generateInstanceFields/> code generation flag