Resharper suggestions are fixed
Refactoring: helper-method is extracted