The transaction follows several other buy-sell megadeals this year as the auto retail industry consolidates.