For user-defined type
Remove deprecated code
WIP: get user defined type