Extract statistics into a service