Allen & Overy advises on landmark merger