Caused byd5c7608b39view_layer is passed in outliner_add_element to fix the view layer expansion (c2fdbcca3c). This result in crash after the recent refactor. Use new struct to fix the crash and to maintain the fix of view layer expansion. Pull Request: https://projects.blender.org/blender/blender/pulls/111646