The Brexit debate has been difficult and divisive.