Rename targetType to more specified names.