Simplify some VFS-related code.