SONAR-4069 Fix issue with decorators dynamically created for metrics with formula