Rewrite of Ivy converter because of issues related to exclusions (rewrite not strictly necessary but the code is safer this way)