Remove unused code and make enabled field in State constant.