Decouple server from ChatServer.