Reduce repeat code in evaluation.