My Pal said he bought a flock of layers once and all the eggs had black spots so he butchered the flock for his dogs.
He isn't sure but thinks they were older birds.
I'm thinking like you mentioned it's blood spots that turned black. I can't see dirt transferring into a Duck egg. Isn't the digestive and egg machine two different set ups?