Remove getType() and related constants