Removed unused parameter
Make `numStats` respect default global prefix (stats) in legacy mode

Right now in legacy mode `numStats` is always reported under root, not under stats.