Refactor Chats.