Remove some code duplication.

- remove one of the DoNothingLoggers
- remove one PrimitiveSet creation test util functions.

PiperOrigin-RevId: 456762012
Change-Id: Ic4b1b459c9f12144a26f6d397765790f3869a925
4 files changed