move classes inheriting from device to a subdirectory