Added factory to get text extractor singleton.