Refactoring with QNetworkAccessManager