Refactor redundant logic for ignoring common partition patterns.
Refactor redundant logic for ignoring common partition patterns.

PiperOrigin-RevId: 331041118

chipsalliance/verible,chipsalliance/verible,chipsalliance/verible,chipsalliance/verible,chipsalliance/verible