mv factory -> functions
move newer check to influx package