Extract response creation from the state object