Continuing Golden Visa incase of Primary investor's death

Any ideas on what is the recourse in this situation. Is it just moving everything to spouse’s name.
Do lawyers discuss and create a plan for such situation ?
Do you create a will to be executed for Portugal specific assets ?