We can cut down the duplication here by building a dict and passing it in:

```
kwargs = { 'ups': row.ups,
           'downs': row.downs,
           'date': row.date,
           'deleted': row.deleted,
           'spam': row.spam }
if type_id in (1, 7): # you said you'd found a better way that doesn't involve magic numbers?
    kwargs['descendant_karma'] = row.descendant_karma

stor = storage(**kwargs)
```