Re-interpolate Color Palette Layers in selected master

Is there a way to do that with script?

Reinterpolate from what?

I have a file with 2 masters. Copied the bolder one with its Color Palette Layers to make an extrapolated master. Extrapolated (by right-click re-interpolate) the main layer but need to reinterpolate the Color Palette Layers too instead of doing one by one.

*Copied the master first then extrapolated because If I add an extrapolated instance as a master I lose the Color Palette Layers.

Also this question kind of related to this question