Refactoring of HttpAsyncService