Unused code removal, scope reductions and macro capitalization.