Refactoring Google sign in classes