Script by Kirsten Beyer. She knew exactly what she was doing.
Also, when a set piece was borrowed from a fan film for an episode of "Enterprise", the title of the fanfilm, "In Harm's Way", was dropped into the canonical script as an Easter egg.
"Vulcan's Forge", referenced as a homage in another episode, was also coined in a fanzine story published in 1969.
As I mentioned above, Beyer may have known what she was doing, but the origin of the name went right over CBS’s head. Or at least that’s my guess.