Remove obsolete flags