I'd prefer to pull out handle_success and handle_server_error and replace these calls with their bodies (since they're both just one line).