Refactoring of check_article_topic and check_article_product methods

Addresses issue #114.