[FOLD] simplify transform operator() logic