Reduce complexity in run_quality.

@jzoldak @clytwynec