Hi, sorry but this is intended behavior. Recipes can be crafted at any quality. You can put legendary cryogenic plant into recycler with quality modules, you'll just always get legendary ingredients back. Same goes with refining any legendary item.
Use filter on inserters to prevent them from doing that. It might be a nice quality-of-life feature to do this automatically... I'll make it a thing after I get done with another mod I'm working on