Advisers from the firm are supporting both companies in the $23.7 billion acquisition.