checkout: move more parameters to struct checkout_opts