In implementing NFT trading in Cashtab, it is useful for this function to be available so Cashtab can validate the script of an advertised NFT.
I can see how this type of validation could be useful for other app dev use cases. There is not really a cost in exporting the function, as webpack will only include it in apps that use it.