Move CSV helpers into namespace