Remove several unneeded flags.