common, skeleton, orchestrator: Pull out common functions