That's a bit complicated, but take your time. I think a buff which marks all base defenses owned by player down, and every base defense and stuff with the buff will be disabled. I think it can work without us having to create "disabled" versions for each defense and no need to replace units all the time