Reduced overhead of creating unnecessary OptimizationVisitorFactorys.