Resharper suggestions refactoring