Refactored rules and their respective properties to an enum