Renamed INSTANTIATE_FACTORY to avoid potential namespace collisions