Previous owner installed toggle switch

What am I missing that needs to go back on for me to remove this?

Pull the wire and switch, run a wire from the solenoid to battery negative.