Remove redundant inheritance.