Minor cleanup in resource_tree