Use one copy of EnforcePtr
Remove unused code
Move FindTypeMeta into the proper file