Share code to send command responses to DRY.