Andromeda has slowed its star-forming rate over the last 40 million years. Scientists think they finally know why.