The breakup unwinds a strategy that began in 2007, when CVS merged with Caremark, which handles prescription benefits available to people with health insurance.