US delivery company FedEx has filed a lawsuit against the US government, arguing that it should not be required to enforce federal government export bans.

The move comes after FedEx mishandled a couple of deliveries for Huawei, and failed to deliver a Huawei smartphone shipped from Britain to the United States.

Huawei is the world’s largest telecommunications equipment maker and No. 2 smartphone brand. The Trump administration added Huawei to a trade blacklist last month, barring US companies from selling or exporting technology and components to the Chinese tech firm without first obtaining a US government license.

The restrictions have disrupted Huawei’s global supply chain, and left companies like Alphabet-owned Google (GOOGL), Micron (MICR)

and Qualcomm (QCOM) scrambling to figure out what they can and cannot sell to Huawei.

FedEx (FDX) said in a statement Monday that the US Export Administration Regulations “violate common carriers’ rights” by making delivery companies liable for shipments that may violate US restrictions. “FedEx is a transportation company, not a law enforcement agency,” the statement said.

The regulations “essentially deputize FedEx to police the contents of the millions of packages it ships daily even though doing so is a virtually impossible task, logistically, economically, and in many cases, legally,” the company said in its lawsuit.

“We have not yet reviewed the complaint, but nevertheless look forward to defending Commerce’s role in protecting US national security,” a Commerce Department spokesperson said Tuesday.

Source: CNN