Separate phase transition state variables from behaviour.
The phase transition models introduced in !3588 (merged) have the state variables mixed with the model. Better approach would be to separate data from functions as done, for example, in solid material models.