refactor: extract root_ from Btree