Refactoring of GroupByDataLayer to support summary with config registry

Change-Id: I43e41dc7b9efd543d826adc317419198727b1d2d