
Using an exported `init()` function to create the object is an odd pattern, and not having the object referenced anywhere makes it harder to access for debugging or extensions. Just export the `EndSessionDialog` class and instantiate it like we do for other objects. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2997>