A bit of cleanup on createLookupIndex functions.