A more flexible EU might have been able to prevent it