Refactor this so you only make the context dictionary once.  It's the same as in the previous function call.