Refactoring create OAuth apps.