SONAR-5189 Reintroduce check for duplicate measures