Create Device object in anviz module
Remove unused code