Move creating of CallbackResponse into a factory method