Make response logic more dry and lazy