code: function pollStatusFile(fileKey) {
    return poll(function onPoll(onSuccess, onError, next) {
      /*
      1. Read status file content
      2. Check if we're done -> call onSuccess
         Check if it failed  -> call onError
         Otherwise call next
       */
      getFromStorage(fileKey, { type: "json", cdn: false }).then(function checkContent(content) {
        if (content && content.params) {
          switch (content.params.status) {
            case 'SUCCESS':
              onSuccess(content.params.data)
              break
            case 'PROCESSING':
            case 'ENQUEUED':
              next()
              break
            default:
              onError(content.params.data)
          }
        }
      })
    })
  }
docs: TODO: Migrate that to a shared helper