Move TrustedDevice to its own source files.