Turn StaticPartPattern into a val, it's stateless