diff --git a/lib/workers/repository/updates/flatten.js b/lib/workers/repository/updates/flatten.js
index 702b331683486544111d675c046d81fcdfbd0f3e..f41109badc196318c64e71c427311ab738fca50e 100644
--- a/lib/workers/repository/updates/flatten.js
+++ b/lib/workers/repository/updates/flatten.js
@@ -18,6 +18,14 @@ function getUpdateTypeRules(packageRules) {
 
 function flattenUpdates(config, packageFiles) {
   const updates = [];
+  const updateTypes = [
+    'major',
+    'minor',
+    'patch',
+    'pin',
+    'digest',
+    'lockFileMaintenance',
+  ];
   for (const [manager, files] of Object.entries(packageFiles)) {
     const managerConfig = getManagerConfig(config, manager);
     for (const packageFile of files) {
@@ -39,14 +47,6 @@ function flattenUpdates(config, packageFiles) {
               updateConfig,
               updateConfig[updateConfig.updateType]
             );
-            const updateTypes = [
-              'major',
-              'minor',
-              'patch',
-              'pin',
-              'digest',
-              'lockFileMaintenance',
-            ];
             for (const updateType of updateTypes) {
               delete updateConfig[updateType];
             }