Instead of the mass recipes that are unnecessarily complex, could you make it so that the mass fab accepts mass in one slot, and an item in another to act as a "template" for it to make an item from? The amount of mass needed to make the item in the "template" slot increases or decreases with the rarity/quality of the item.