Code refactoring for sleep set and persistent set analyses.