Decorators to migrate to CE :
Current implementation in Batch saves a Measure for File Components of 1 for Metric FILE and a Measure for Directory Components of 1 for Metric DIRECTORY. This was required because of the way aggregation of measures was implemented but it is not anymore. Not saving this measure on FILE Components and Directory Components of 1 would save a lot of lines in table MEASURES.
But this can not be dropped in 5.2 as this value is required to drilldown on the number of files and directories. Example: https://dory.internal.sonarsource.com/drilldown/measures/58048?metric=files