splits rules and ruleset into a controller and a data-set