Minor optimization for the 'branchingBit' function.