transferring lots of command blocks to datapacks

hihi :3 me and my friend worked on like a sort of pvp/exploration server and used lots of command blocks for abilities and enemies and such, but now we used so many that the average tps is around like 10,,, we saw online that datapacks could solve this issue but i dont really know how to start or if its even possible with the way i made the command blocks.. could anyone give any tips on transferring/ say if its even possible? if anyone would wanna go see the command blocks themselves and say if its possible or not it would be a huge help
Continue to help post