Abstract out the current optimization level into a flag that can be overridden