Move device model from 'core' to 'main' submodule