[PATCH 4/5] Refactor DeviceFactory.set_container_members for clarity.