As with anything, you can train them to more or less shrug off your presence while they're laying.
Last time I was doing my coop clean out, I had two birds in the boxes, laying. I raked and swept and scraped, moved stuff around, and cleaned out everything except the area under and...