Use common NestBase object

DRY up Device/Structure a bit