Automatic code cleanup