Factory snitch logic into lib
Snitch lib spec