Ref.split_spanning_ref() supports arbitrary depths