Refactoring of class structure for metric configs.