Remove use of deprecated defined(@list)