Fix an error where a class would have duplicated operations if it
implemented an interface with similar operations or if it extended an
abstract class with similar abstract classes.