Remove redundant resetting of state.