Remove based on state.