Extract version-getting jobs to functions