Simplify a small bit of logic.