Moved the access token class to the service layer.