Small refactorings to improve code quality based on inspection feedback from ReSharper