Rewrite electric registry and create correct instance on block placement.