Switch from Tree{Map,Set} to BTree{Map,Set}.