refactoring: extracting simple/complex analyses