Remove unnecessary class inherits

There is no need to do that, so removed them.