You should be able to abstract that op away into a function easily though, for example:
local in = function(sig) return red[sig] + green[sig] end
And then use that in all code after that as:
local signalS = in('signal-S')
If you use it mostly for signals, can also auto-prepend signal-
prefix there, or can make one-liner to build local table to access those via e.g. sig.S
for brevity.
Feel like it might be more confusing than useful in the base mod, given how simple it is, how long and confusing "help" text already is, and given that it clearly duplicates existing functionality without allowing anything actually new.