Replace metadata key by custom_fields