Remove redundant 'classof' functions.