cleanup bin/tl; refactor GLI helper methods into a utility module