Moved level generation to separate module.