NSURLSession refactoring