Yeah, I would carefully replant each one in its own small container filled with a more cactus friendly substrate. leave the dirt on what little roots they have, just try and pry them each up like a small clump and replant in sandy cactus soil.
I am not a cactus doctor but it should help.