Wouldn't be more efficient to use only one single loop over `rules`? Because there is already a `_.filter` on line 36 , a `_.reject` on line 47 and a `_.any` on line 82 (+ my new `_.each` on line 57). Or we don't care?