Changing desert pyramid to custom structure

I've read through some of the posts here and reached the consensus that desert pyramids is hard to alter with datapacks because they are hardcoded. With that said is there any workaround?

For context I'm making my own "husk drops sand" datapack where I also want to add a husk spawner to desert pyramids because it's really hard and needlessly complex making a "husk farm". Therefore I thought a naturally spawning husk spawner in pyramids was a good fix to the problem.

Could anyone please tell me if it's even possbile? It's very hard to find resources specifically about hardcoded structures... at least what I've found thus far :3

Continue to help post