Tidied up use of Node 'exports' for utils function.