Move library comparison to new file.