Modify NetCDFFactory constructor to make it easier to test