This code is repeated a few times. It may worthwhile to have a complex metrics utils class that will register HLL and other complex metrics in the future