Defining Custom Fields in JSON would make life easier when replacing a device. You would be able to copy all properties from the old one and import it to the new one quickly.