DRY up spec a little using let memoization.