It shouldn't be legal. If you halfass something you shouldn't get off the hook for it.
While I agree with your sentiment regarding this particular write-off (especially if installed knowingly), customer satisfaction has been recognized as a business expense since the beginning of trade.