Move SnakFactory to lib

Change-Id: I4003c6edb36b04d80ff71dd3a500aa3b30b10ab6