Refactored GetZonesInRange Method to avoid duplicate logic.