Spin migration in density functional theory: Energy, potential, and density perspectives