Extracts common CSV func to abstract class