Reduce conditionals within loops.