[SpecHelper] Consolidate pre-flight setup code