Issue #2169983 by plopesc, yched: Move type-specific logic from ListItemBase to the appropriate subclass.