Remove flags from modules that don't use them