Decouple s3 URL parsing