Alert Dialogs, Style, Refactoring