Moved message handler configuration into private methods on Server.