Morgan Stanley reorganises legal function