I think you could use _.map to make this nicer.