Remove duplication of in_branch.