Refactor metadataUnchanged to be clearer