I remember before the technical team went rogue, there was a list of things you can and cannot do. Those have been left in the dust. Repl8cation was supposed to follow these rules.
Matter assembly, not creation.
Small items for basic life support, (clothing, food, etc)
Decorative items for creature comfort are okay.
No weapons or large matter.
After TNG came out rule 4 was amended to include armory stores for survival equipment and medical gear (remember the lab in the sick bay of TOS?)
Weapons could be authorized in emergency situations by the captain, first officer and security chief.
Wish I still had access to those notes. Some were amusingly written.
All of this was strictly for writing purposes but after Rod died, a lot of the 'style guide' went the way of the dodo and the saber tooth tiger. First was matter creation versus 'ships stores' of 'molecular construction goo.' lol