Move data transformation into util function to make testing easier.
Attach a file by drag & drop or click to upload