Profiler refactoring: removed code duplication from Future zone patching function