As discussed, we'd like to abstract these 3 lines of code:
auth_provider = AzureIdentityAuthenticationProvider(credential, scopes=scopes)
# Initialize a request adapter. Handles the HTTP concerns
request_adapter = GraphRequestAdapter(auth_provider)
# Get a service client
client = GraphServiceClient(request_adapter)
And only request from the developer to specify the context, the scope and its required values.