Upgrade batch context.