MessageParser is refactored.