Editing the ebook's raw html is the best way to keep out unnecessary bloat.
Every program out there, without exception, adds bloat in the process of guessing what you want. The professional ebook companies touch up ebooks by cleaning it up with something like Sigil, or calibre's Edit Book feature.
I'd be willing to bet an Apple product is more guilty than most.