two sheds, for some random reason, Blue started having an early morning dump in the kitchen a few months ago. Healthy turds etc. I knew he could hold it because when he sleeps in the van/tent, he doesn't go til I get up - sometimes 8 or 9am. Where he got the idea he could crap in the kitchen from, I don't know but I started putting him on a loose lead when he was in bed and tethering him for the night. He could get up and move but only within a metre or 2 of his bed. My thinking was he wouldn't shit in/near his bed & if he really needed it, he'd whine so I'd get up.
It did work; no more crap in the kitchen and after a couple of weeks, I stopped tethering him and he hasn't done it since