Class MetadataToHeadersFunction