Refactorizing analyze