Describe the solution you'd like
As per the comment: #4020 (comment), uploadMetadata should not be a public method. This will allow to abstract it as part of RemoteSegmentStoreDirectory and callers will not have to understand how remoteMetadataDirectory works internally.