def potential_settlement_upgrades(owned_settlements):
    """
    Gets all the possible options for upgrading settlements.
    :param owned_settlements: The settlements that are owned by the player.
    :return: A set of settlement that can be upgraded.
    """
    return {s for s in owned_settlements if not s.is_city}