I'm confused.  You've just set event[field], and you want to what?   Delete it before setting it (why bother)?  Delete it after setting it (why bother)?  Or actually delete it from the context (e.g. del context[field])?  The latter better matches what the rest of the shim is doing, except that the current code also includes some fields in the context as well.