Move functions and global into utilities directory.