Refactored out method for NSURLSession creation