Extracted predicate rule creation into its own class.