Remove unnecessary statements