Extract comparisons into small methods.