Removed unused smallest_covering_region function.
Made write unsharding use a visitor.