Judges need clarity on EU law post-Brexit