"Dimensionality reduction" here is about merging redundant/semantically identical variables. The logic is largely dicatated by a spreadsheet which specifies the permitted merging logic (aggregation function) for different variables (e.g. do we take a count, an average, a sum, etc.).