Extract bulk of the transformation for each field to its own function