Removes obsolete remnants of a flag.