Apply the same work as #2779 to the `fs` module. This should enable switching to `&self` for most methods.