Cleaning up trie router a bit.