What about we move this whole chunk (in between try/rescue) to a private function?