Change target-specific classes to use more precise static types.