I suggest adding an external object – an external guild of mages. Construction and reconstruction occur when the hero is on it; spells can only be learned by visiting it. Regarding possible spells to obtain from it, I think the developers will figure it out, but I believe that if all spells are included, it will be very inefficient.