How to Remove OnLevelWasLoaded() Console message?

when a scene is being loaded some methods are being called, and everytime i start the game i get the warning “OnLevelWasLoaded was found on [script]
This message has been deprecated and will be removed in a later version of Unity.
Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed”. i know that it says that the message will be removed in a later version, but is there a way i can get rid of it now?

Remove OnLevelWasLoaded function from your scripts.