Move response initialization to its own method