Hoist assignment to simplify a conditional