Transferring the lessons of Brexit