These settings are available in system.settings and are autogenerated from the ClickHouse snapshot.
optimize_group_by_constant_keys
Optimize GROUP BY when all keys in block are constant
optimize_group_by_function_keys
Eliminates functions of other keys in GROUP BY section