Remove unused libraries and styles.