Simplifying index.js by extracting core/getOrphanedLists.js