Reduce complexity in run_quality.