Refactors debugging for speech rules.