refactor to StopWordsLoader to reduce amount of global state