Refactoring of postUploadService.