This is the way to do things right; recognize a vulnerability and select a best method to reduce the risk. The UAE not only accomplishes that but reduces the choke of the shipping choke point that the Straits have become. Over time, this pipeline will gain additional values with completion of an advanced refinery.
The source article can be read here