Only showing deprecation warning for code parameter if this is set.