Remove reference classes