Moved device assignment create logic to common handler.