The Market for Mergers and the Boundaries of the Firm