Can I just swap the motor out on my pump? Could I swap it out for a two speed motor? If so, how do I know which motor will fit?

I was thinking that this might be the cheapest/fastest way to fix the issues above.