Removes MongoDB dependencies.