Clean up register_repr