Refactoring the WebChat project.