The deal could reduce legal costs and lower their advertising budgets.