remove duplicate method contexts

move method_context from each exec command to a
higher level that applies to all commands