Instead of having two APIs (`find_layer_by_name` + `find_layer_group_by_name`) replace them with a single API `find_node_by_name`. This returns a `TreeNode` but the caller can easily check if it's a layer or a group.
Instead of having two APIs (`find_layer_by_name` + `find_layer_group_by_name`) replace them with a single API `find_node_by_name`. This returns a `TreeNode` but the caller can easily check if it's a layer or a group.