Remove references to MAX_MSG_LENGTH.