BTree doesn't have remove, so use pop instead