[support] Reducing duplicates in a list of terms