Reorganize unwrap_tuple_if_not_nested