I'm sure i've heard somewhere before about lowering the height of the bed so the dog can't stand up fully for a while, that way that can't piss etc. My old bosses labrador would shit in his bed every day and had all his life for about 10 years and it was as though he aimed for them when it came to lying down, at least he was yellow and you knew where not to stroke