Remove unnecessary branching.