[TASK] Push evaluation of the operation into the context.

The context now serves as the central place to edit each mediaType.