refactor

Changed the JsonBucketManager definition from class to trait.