Separating the Chat module from UI