When local exports were first added, several of the field names differed from those in the archive build metadata (as the latter contained archive_ prefixes which would have been inaccurate for the local export use case).
Since then, the archive build metadata has also dropped from the archive_ prefix from those fields, so it should now be possible to eliminate more of the code duplication in the metadata handling for local exports and archive publication.
When local exports were first added, several of the field names differed from those in the archive build metadata (as the latter contained
archive_
prefixes which would have been inaccurate for the local export use case).Since then, the archive build metadata has also dropped from the
archive_
prefix from those fields, so it should now be possible to eliminate more of the code duplication in the metadata handling for local exports and archive publication.