Refactor UIService.showMessage