[btr] Split btr_del_node() into two functions.