Remove unused getBuckets
Use new history backend