file: Split file stuff into separate files.