Move dialogs into encapsulating file.