Today I have been working on a system to dynamically swap recipes depending on the amount of quality intermediates available, it even accounts for productivity and here it is in my underground pipe upcycler
while some may say its better to just build one building for each quality, this allows you to use a lot less quality modules and buildings considering how infrequently the higher qualities craft!