DisplayPowerController: Remove duplicated code