rule refactoring: assignment of rule result as closure