hbase lab refactor