Introduce Rule and Setting classes