You do realize that deducting the cost of producing a product is entirely normal and expected behavior right?
It’s not some special loophole.
If you use $1000 of electricity to harvest your crops, that $1000 would be equally as deductible because it’s just a cost of production?