Preliminary refactorings for #20500
Add specific flags for optimizations that are currently directly controlled by optLevel
.
Removing optLevel
itself is a potentially more delicate change to the Core-to-Core pipeline that will go in its own PR building on this.