Bootstrap prepivoting in the presence of many nuisance parameters