Refactoring the interface for file in-/output backends.