Britain is due to leave the EU on 31 October.