refactoring RootTableBuilder.java