[checkmk-commits] refactored some BI code before introducing a new aggregation option