Cleanup code by ReSharper.