Thank you. I don't know why I didn't think of that.
This is what I ended up changing in control.lua:
-- (added implicit support for Bio_Industries)
local function do_stuff(event)
local entity = event.created_entity
if entity and
( entity.name == 'connection-box' or
entity.name == 'small-electric-pole' or
entity.name == 'medium-electric-pole' or
entity.name == 'big-electric-pole' or
entity.name == 'bi-large-substation' or
entity.name == 'bi-wooden-pole-big' or
entity.name == 'bi-wooden-pole-huge' or
entity.name == 'substation'
)
then
if entity.neighbours then
entity.disconnect_neighbour() -- copper only
end
end
end
script.on_event(defines.events.on_built_entity, function(event) do_stuff(event) end)
script.on_event(defines.events.on_robot_built_entity, function(event) do_stuff(event) end)