Except contracting it out would probably cost more money.
Target Pharmacy was losing money, that's why it was sold.
AP, what little is left, is there to protect the company assets. If they wanted to save money they would just cut more positions, not sell it off to another company to manage.