Think I’d roll with the persistent training approach TBH.
It worked (just about) for our terrier (who is not the smartest dog) and turds, particularly horse turds, for some reason unbeknownst to us, he perceives them to be the tastiest snack this side of a slice of bacon, so this took quite some time.
Having said that, if we stumble across a particularly steamy fresh offering we still need to give a firm ‘no, leave it you disgusting mongrel’.