glw/viewoptimizer: Merge static clearing of flags into flag ops