DRY'd up comparators