headRef replaces two symbolic-ref HEAD reads, patchArgs the two diff argv builders, and run-git spawns git and feeds its stdin through one spawnGit and feed instead of three and two copies. listVerifiedEmails reads through verifiedEmailsByUser rather than repeating its query for one user.