Refactoring checkbox restriction setting into RState.apply()