Remove unnecessary parts and styles.