function removeDependency({ moduleName, packageName, modulePackageName, old }) {
  // Get package content
  const packagePath = computePackagePath(packageName);
  const packageContent = `${fs.readFileSync(packagePath)}`;

  // Extract dependencies
  const dependenciesRegExp = /"dependencies":\s\{([^()]+)\},\n\s+"devDependencies"/g;
  const [, dependencies] = dependenciesRegExp.exec(packageContent) || ['', ''];

  // Remove package
  const dependenciesWithoutDeleted = dependencies
    .split(',')
    .filter((pkg) => !pkg.includes(computeModulePackageName(moduleName, modulePackageName, old)));

  // Remove module from package list
  shell
    .ShellString(
      packageContent.replace(
        RegExp(dependenciesRegExp, 'g'),
        `"dependencies": {${dependenciesWithoutDeleted}},\n  "devDependencies"`
      )
    )
    .to(packagePath);

  removeSymlink(moduleName, modulePackageName);
}
Removes the module from the dependencies list.