@aniuska you should probably be adding "getCategoryMatchForTermAndNamespaces" to MediaWikiService instead of reusing this method, or else you'll just have an instance of Wikia\Search\Match\Article.