Remove a duplicate length check.