SONAR-5056 Refactor the way characteristics and rules are imported from XML