Move device commands to common lib