If you don't have tests that will alert you about de-syncs between 2 components than it's just a tradeoff of "Choose your poison" question.
Either your language (or _maybe_ tooling) allows those to coexist or you are now going to have a really bad time and give serious thought to jettisoning one of A or B.