replace class DoubleTransformStrategy and TripleTransformStrategy with their anonymous version.