It's really quite ugly that this depends on netbase data structures. I don't have a better proposal for now, though.