@mengxr Currently, the ```calculate``` method is used on bin aggregated data after the ```aggregate``` operation. So this change won't require doing partition-wise merge of impurities. It's just code restructuring without modifying the implementation.