Factor out non-bucket functions from Bucket.
Merge pull request #1 from judy2k/deletion

Factor out non-bucket functions from Bucket.