Refactoring oxArticle::getCategoryIds method.