Delete redundant inplements.