In 2003, Caremark bought AdvancePCS for $5.3 billion, and CVS acquired Caremark in 2007 in a $26.5 billion deal.