Refactoring using resharper