This was a fantastically smart deal for both sides.