function restoreMetadata(objMD, metadataStoreParams) {
    /* eslint-disable no-param-reassign */
    const userMDToSkip = ['x-amz-meta-scal-s3-restore-attempt'];
    // We need to keep user metadata and tags
    Object.keys(objMD).forEach(key => {
        if (key.startsWith('x-amz-meta-') && !userMDToSkip.includes(key)) {
            metadataStoreParams.metaHeaders[key] = objMD[key];
        }
    });

    if (objMD['x-amz-website-redirect-location']) {
        if (!metadataStoreParams.headers) {
            metadataStoreParams.headers = {};
        }
        metadataStoreParams.headers['x-amz-website-redirect-location'] = objMD['x-amz-website-redirect-location'];
    }

    if (objMD.replicationInfo) {
        metadataStoreParams.replicationInfo = objMD.replicationInfo;
    }

    if (objMD.legalHold) {
        metadataStoreParams.legalHold = objMD.legalHold;
    }

    if (objMD.acl) {
        metadataStoreParams.acl = objMD.acl;
    }

    metadataStoreParams.creationTime = objMD['creation-time'];
    metadataStoreParams.lastModifiedDate = objMD['last-modified'];
    metadataStoreParams.taggingCopy = objMD.tags;
}
Keep metadatas when the object is restored from cold storage
but remove the specific ones we don't want to keep
@param {object} objMD - obj metadata
@param {object} metadataStoreParams - custom built object containing resource details.
@return {undefined}