Copy metadata to remove id key