Same with this block - replace with the `telemetry/util/s3.py` code if possible.