Rebase: introduce create_rule() to adapt to master
Rebase: introduce create_rule() to adapt to master

master branch had undergone significant logic changes.
This modification applies a minor tweak to permit the rest of my
changes to be trivially rebased and the branch to be mergeable with
master again.

Charcoal-SE/SmokeDetector,Charcoal-SE/SmokeDetector