Custom legacy transformation