Remove invalid code of parent definition.