Remove IsPrimitive and ToPrimitive, as they are no longer used.