Small cleanup of the bucket properties api
Some simplification of the bucket properties write classes, turning them into case classes