pmd: duplicate code: removed unused test
pmd: duplicate code: refactor to minimize dupe code
pmd: remove unused parameters
Merge pull request #288 from candlepin/pmdfixes

pmd: duplicate code: removed unused test