Split behavior, tests, and cleanup into reviewable units, then check that each commit has one clear purpose.