even leaving everything else about modularity aside, you should still be able to make a helper method that takes two booleans and attaches rules to a state...