Fix calls to JMRFactory in static context.