ReSharper code cleanup

I just pressed "Resharper code cleanup" button. I doubt there was any
bugs added to this commit because it was entirely automated.