Factor out the broadly-useful parts of smaccm-ins.