refactor bit width into Constants class