Small refactor of attenuator and volume stuff.