SONAR-5001 SONAR-5405 improve clean-up of duplicated rules and users