Whitney's refactorings to reduce flog score