MDL-35716 report_performance: code refractored to have classes