reorganize metafield data