Less duplicate code in worldregen copy