Moved rule creation in to ruleset class.