[#1] clarify `dirty_branch?` logic

Extract Method, Introduce Explaining Variable etc.