He recently told me that every time he feels like he's losing his motivation and starts to fall into negativity, he goes to the kitchen and does the dishes.
He considers this time to be part of his work day.
By the time he has washed the dishes, the sense of accomplishment is back.
What I take from this anecdote is that the brain does not distinguish that washing something is not part of building a web application. It is simply content to have cleaned multiple objects and then have completed a complex task.