Generalize code for reattaching per-tier plugins.