VariableFactory for creating generic references