Refactor JMRFactory for readability.