You could move CCryptoKeyStore to crypter to break the dependency of rawtransaction on crypter.