Scotland and Wales are being treated as bystanders in a Brexit that doesn't work for them