Move file creation into separate module.