Cleanup obsolete options in CodeGen.