Split Bucket.sync into multiple private methods