Clean up IDS/gen_filament to make it more modular.
This is not an urgent task. Related to discussion in https://gitlab.epfl.ch/spc/tcv/tbx/meq/merge_requests/60#note_49643
This is not an urgent task. Related to discussion in https://gitlab.epfl.ch/spc/tcv/tbx/meq/merge_requests/60#note_49643