How to access material properties as material parameters?

There are some Material Properties that defines material behavior - like in my case Nanite magnitude and center.

I would like to get access to value of this parameters as constants in material itself (to do some calculations with this values).

Is this possible?

I know I can add parameters and set same values as in “details” panel - it works, but this is error prone, and cause hard to debug artifacts just because I forgot to change one parameter in two places.
Is there way to automate this process as workaround? I.e. during shader compilation to copy some values from material properties panel to material constants?