TypeComponent type class is removed. Some functions are moved to
submodules.