Move file writer to Driver, remove unused duplicate function from Parser