Britain is a member of an aviation agreement based on 35 shared pieces of EU legislation, a common regulator in the European Aviation Safety Agency, and a court acting as a referee on the shared rules, the European court of justice (ECJ).