Created a custom deprecation warning so that it can be displayed to the user.