Code cleaning in iOS