Refactored level generation code to new (appropriately named) namespaces.