move stripRules back into the function body

i figure this way its easier for people to see them, realize they're there and configurable.