Confusing, I don't understand the reason for doing it....
I see no real reason to remove the corresponding parts from the programme code. Perhaps you feel the same way as I did at the beginning and have more of an understanding problem with the term B4X. Please understand me correctly, I don't want to lecture you. I just have the feeling that you may not have understood the principle of B4X. Disassociate yourself from the idea that B4A, B4J and B4I are the same as B4X. B4X code is "just" a cross-platform code for all, B4A, B4J and B4I.
You want to create a pure Android app. That's what Erel's B4X code does. In principle, it makes absolutely no difference whether the code for B4I or B4J remains in the programme. B4X is cross-platform code and it does not hinder you in developing B4A applications. On the contrary, it creates possibilities under B4A that you did not have before. So why take a step back, remove B4X code from the programme and replace it with pure B4A code? You're going to have trouble doing that. B4X code creates possibilities under Android that you cannot solve with pure B4A code.
In the end, the B4X programme runs through the compiler. It then builds your native Android app and ignores the B4X code for other platforms. So why do you do this work?