Rewrite transform_arguments