Extract statistics into dedicated class