Refactoring louds trie.