Refactoring for dynamic recomputation of results