To create software in small batches is hard. Progress taking small steps require finding the right increment and focus on reach it with the simpler solution. Sometimes I boycott myself, including more thing than those inside the scope.
There are a few reasons for that, but the main ones in my case are interruptions and coding alone. Interruptions destroy your concentration and focus.
The Mikado method can help to recover the context and the right path after interruptions. Two brains coding help us to maintain two different mindsets along the session and avoid the temptation of doing too much.