The opts.url is only used for remote verification

Therefore, we can move the part related to parsing a URL into
the if statement related to remote verification.