Suppress deprecation warning for a spec lookup by string.