move resource#handle_response into its own module