A little bit of refactoring in qtism\runtime\rules.