Replace WordParserImpl with WordParserBase

This refactoring commit removes the WordParserImpl class template in
favor of the new WordParserBase abstract class. Using a class template
only for class dependency injection seems to be an overkill. An abstract
class is sufficient and more readable.