Add machinery to automatically (de)register brushes