So, after reviewing the `writeComponent` function, the approach is correct. You don't need alternative modules if you are shipping the Perl module yourself inside the profile, which is what this function handles. Just put a different code blob in the profile.  And yes, there were bugs in this function IIRC, but I'm not fixing them unless people insist on shipping the Perl code in the profile. That idea died a long time ago.