How to remove duplicate in Legends?

Hi, I want to show message lag in each Kafka topic using metric “kafka_consumer_records_lag_records” which our application exposes via Prometheus to Grafana. Application is deployed in Kubernetes pods and pod name can change each time after deployment. So the Legend {{topic}} is duplicated.

Metrics exposed by application:
kafka_consumer_records_lag_records{app=“csp”,client_id=“consumer-1”,job=“kubernetes-pods”,kubernetes_namespace=“al12328”,kubernetes_pod_name=“csp-deployment-5bd895bcbc-qx5bj”,partition=“0”,pod_template_hash=“5bd895bcbc”,topic=“POSTAL_ADDRESS”}

kafka_consumer_records_lag_records{app=“csp”,client_id=“consumer-1”,job=“kubernetes-pods”,kubernetes_namespace=“al12328”,kubernetes_pod_name=“csp-deployment-579b4bb57-58kpg”,partition=“0”,pod_template_hash=“579b4bb57”,topic=“POSTAL_ADDRESS”}

kafka_consumer_records_lag_records{app=“csp”,client_id=“consumer-2”,job=“kubernetes-pods”,kubernetes_namespace=“al12328”,kubernetes_pod_name=“csp-deployment-5bd895bcbc-qx5bj”,partition=“0”,pod_template_hash=“5bd895bcbc”,topic=“INDIVIDUAL_DELTA”}

kafka_consumer_records_lag_records{app=“csp”,client_id=“consumer-2”,job=“kubernetes-pods”,kubernetes_namespace=“al12328”,kubernetes_pod_name=“csp-deployment-579b4bb57-58kpg”,partition=“0”,pod_template_hash=“579b4bb57”,topic=“INDIVIDUAL_DELTA”}

How to avoid duplication of the topic?