DRY up the checks

Pulls some of the repeating logic (like finding param tokens and such) into `PuppetLint::Data` for easy reuse.