Abstracted most of file handling logic to a shared files service