remove duplicate code on create rackspace machine