Resharper Code Cleanup

This is automated so I didn't add any bugs into it. Feel free to reject this as it's just automated.