BS-1998, Moved api session dependency from EngineClientFactory to EngineAPIAccessor.
Extract CaseHistory conversion to its own class.