File structure in custom_components

I have a custom board that has 8 inputs and 8 outputs. I’m trying to model this in HA as 8 sensors and 8 switches, with a common “hub” that is accessed over sockets.

My code for the switches is working and I’m now looking to tackle the sensor piece. However, since both the sensors and switches are on the same board, I need to share my Board() class between the two component types.

How do I structure this in the homeassistant/custom_components/ directory? Assume my component is called “webit”: is the following correct?