MLTries refactoring part 12