Replacing type declarations of variables/params by more generic types (as usually advised).