Refactored territories into individual modules