I've realised that splitting and amending commits is exactly like refactoring. You have the same goals: clear, well-defined units.