A pure refactor commit that passes the required buckets to the `getRangesWriteBucket` instead of re-fetching them.
t.Cleanup