Refactored knife-openstack code