Extract article_for_category function to a partial.