Remove some duplicated parts.