moved CSV index formatting into Factory