Move generation functions from common to world-gen