Remove redundant warning messages