Remove unnecessary global statements