Refactor spec: replace lets with a factory method.