Because there are two dialogs for editing optional downloads, refactor the separate implementations to select them into a common reusable widget and use it in SelectiveDialog and InstallDialog.