Reorder factory to appease JRuby's JSON parser