Remove duplicate code

I'm not sure if it was intentional or not.