Refactoring and making Gtk.Application