Refactoring Rendered#process_tree