Remove a repeated IF clause.