I tried to make this an @Extension, but it needs to be available when the Queue is created in the Jenkins constructor, which is before Extensions are loaded AFAICT.