PIM-1959 : move reference factory
PIM-1959 : move reference factory test
PIM-1959 : update references to reference factory