Replying from a mobile phone, so can’t really open and see your attached file. But from what you have described, it doesn’t sound very difficult.
Try tree statistics, figure out a way to dispatch the branches statistics based on your standards, and then select tree branches using the dispatched ones, that will essentially split the tree.