Suppress deprecation warnings where no other alternative is possible