this is probably a completely different problem. A highway=* way might be inside or outside some admin_level=*
boundary, but it may also cross one or more boundaries and it might be part of the boundary.
I think the bounds file contains all information needed to split the ways when needed.