Something like this probably: https://github.com/crowbar/barclamp-quantum/pull/81