No comments please ;)
This is easier to read
The second each is redundant
Reuse! ;)
Again
Extract functions for patterns also!
I forgot to commit this before
Remove debug info and unused code
Extracted construction to a factory