Refactoring en tree_create_*