OC-2327: Isolate the code for Download a file