conductivity_gpio: Refactor initialization and cleanup