[snipmatch] Make snippet builder more re-usable

Change-Id: If53581600ae2c357a5abb0c68694da36afe5a16e
Signed-off-by: Andreas Sewe <andreas.sewe@codetrails.com>
Merge "[snipmatch] Make snippet builder more re-usable"