(a)if the whole or any part of the goods resulting from such operations are exported, import duty shall be remitted on the quantity of the warehoused goods contained in so much of the waste or refuse as has arisen from the operations carried on in relation to the goods exported: