Do this after the if statement below. No need to split if sub_metric already exists in important_sub_metrics.