Stage 1 of refactoring main file to be really small and only call different utility methods.
Refactoring of single utility module that lightweight mains call complete.