Cleans and refactors ChatWindow. Constructors share a lot more methods.