IDEX-456: add methods for getting snippets.
Merge with master
IDEX-456: add factory builder