I don't think there's any need to have these 3 lines for each type.  The one after this block should be sufficient.