Use a single routine to print warnings for dummy routines

* Use a single routine to print warnings for dummy routines"
  * warn_dummy_routine()
  * prints warning when the existing routine is a dummy