move some methods from Context to ModifyRuleCommand