Rewrite callback context binding