That is an artificial problem created by the EU's structure and ideology though. There's no reason collaboration between nations must be funneled through an organization that sees itself as an alternate government, and which likes to present everything as all-or-nothing. There could easily be independent agreements on independent topics which would avoid such issues, but this would not meet the ideological goals of the EU to replace the existing nation states and governments, so they don't do it.