Reforctoring AnkiParser and AnkiParserTest.