Remove accidentally duplicated code.