Moving common communication code from 3 peripherals.