UK supermarket chain Wm Morrison has agreed with BP Oil UK to dissolve the partnership between Safeway, acquired by Morrison in 2004, and BP.