Refactoring process