Removed duplicate code

OMFG. I am a horrible contributor.