Our linter correctly points out that `processBulkUploadTask` is way too complex. It's absolutely correct. We should refactor the code into smaller and better organized parts. This is a large enough lift that I wanted to make a ticket to capture the need.