Change opacity classes to use generator.