Remove article_for_category function. Extracted category html generation to a partial. Partial is included in index.php and products.php.