Make resultHandler aware of prefix it is working on & simplify aggregation