Condense code slightly; no functional change.