Refactor DigitalOcean connection