Remove the unwanted inheritance