Started refactoring of well_state ERT-130