refactor of snippets-analysis to break out some utils and some functions pertaining to alignment information