refactoring tree presentation