Remove unneeded inherits.