The ID remapper code was already largely defined in a CPP struct (IDRemapper). Make this an actual class, and remove the C API wrapper around. This makes the code cleaner, easier to follow, and easier to extend or modify in the future. Pull Request: https://projects.blender.org/blender/blender/pulls/118146