Remove duplicate code

That could have been bad to leave in.