Remove unused parts.