Copy options object so that we can confidently modify it