Since all these look like generally useful helper functions. Should they perhaps be moved to a utility library for others to use. I know I implemented a similar lookup in BulkLoader.