Move org.sonar.api.measures.AverageComplexityFormula to sonar-deprecated
Fix quality flaws in ResourceKeyMigrationTest