Moved tree hierarchy code to appropriate repositories.