Split rules out into modules