Refactor documentation tree