move more common code into snow2-utils package