Remove is_open_state and BUG_STATE_OPEN