i2c: organize stub code.