Refactoring.
Fix generic constraints even if parameter order does not match.