Stop receiving notification from a legacy Firebase project in Android application after applying config from the new one?

I have an Android application, it contains the google-services.json config of the Firebase project to support notifications and the app was already published to Google Play. Now, I change my application to a new Firebase project but it still receives notification from both the new Firebase and the legacy. I don't have permission to manage the legacy Firebase but I don't want it to push notification to my application anymore so How do I achieve this? thanks