Remove unnecessary branching