SONAR-4908 refactor RulesDefinition API (debt functions, XML)