refactors file service components from BookService to FileService