re: Scotland
It seems that an alternative to Brexit would have been England and Wales leaving the UK while Scotland and NI would have remained thereby remaining in the EU as well (I seem to recall this was what the voters in the respective parts wanted). Actually, I think there would have been precedent for an even better trick: if memory serves Greenland left the EU while remaining a part of Denmark.