Revert "Move this pattern to utils"

This reverts commit f525d3c6c5226b24da5f10b9661bf9b2189ceb5c.
go fmt
This test was actually wrong