When carefully structured, carve-outs not only avoid hidden risks but also create long-term strategic advantage.