Her dramatic unseating of Zac Goldsmith, who had resigned from the Conservative Party to recontest his seat as an independent in protest at the government’s plan to build a third runway at nearby Heathrow airport, owed much to Brexit.