Private/Discovery/Get-TransportRuleHash.ps1

function Get-TransportRuleHash {
    param (
        [Parameter(Mandatory)]
        $TransportData
    )

    $TransportHash = @{ }
    foreach ($Transport in $TransportData) {
        $TransportHash[$Transport.Guid] = @{
            'Description' = $Transport.Description
            'Priority'    = $Transport.Priority
        }
    }
    $TransportHash
}