Restructured OutputTerminalGroup and InputTerminalGroup classes
Changed bric dependency determination scheme