This reverts commit 81f87ce6ed.
81f87ce6ed
Was previously in yosys_internals which is more developer focused, rather than user focused.