Started separating out commonly used world generation functions