Help! how to make a branch

I have done this but it needs a lot of rework but the logic is quite good. Could be terrific with xnurbs