Refactor AWS.S3.ManagedUpload class