Begin dialog refactoring