Refactor dialog classes into a separate package. Their associated model classes get moved also.