Tweak optimizer for factory.