Refactored WiktionaryWriter to make possible subclassing for handling different source formats.