Cleanup of a little bit of code

Removed duplicate code that caught my eye.