Remove unused types.