I’d probably look at porting it over.
In my experience, the new API is a lot cleaner - e.g. using templates instead of macro expansion to achieve what the old generic mechanism did.
Best regards
Thomas