Reorganization of statistics generator workflow

Filtering input data phase and aggregate statistics are optional