Trim unused parts