Refactor power up and power down functions