Reorganize the pearl configs in modules in lib dir