Began refactoring process method