Refactorings for using stored topic model in topic-model-inference.