Refactor to improve code quality when adding resources to cloud management.