Extract complexity into simpler methods in Stats class