The evolution of termite immunity