These lines can be combined: ```let {filePath, query} = NetUtil.newURI(url).QueryInterface(Ci.nsIURL);```