Simplify what list_ports returns.