Make inheritance structure sane.