Refactoring oauth response.