Refactor DigitalOcean and ResourceManager.