Moved Device.java to components.