Advisers to Twitter and Elon Musk are hard at work trying to get their $44 billion buyout deal closed by the end of the month, according to people familiar with the matter.

Both sides’ bankers and lawyers are preparing paperwork for the buyout to be completed by the Oct. 28 court-issued deadline, the people said, asking not to be identified because the matter is private.

After months of public acrimony and accusations, talks between the two sides have turned cordial and are focused on closing the transaction rather than litigation, according to one of the people.