Preserving highlights/bookmarks/annotations in Books when importing a newer ePub

When I update a book downloaded from the Apple book shop, the book is replaced in my library and all my notes/highlights/bookmarks are moved to the new version.

When I import a newer version of an epub, it’s imported as a separate book.

Any workarounds?