Fix the fact that defined types cannot inherit.