reomve RegisterType class