Unable to declare -f via ssh successfully

I'm trying to declare a functions over a remote server via SSH. funcA () { echo 'do something'; } ssh $somewhere " $(declare -f funcA); funcA " and I am keep getting: Badly placed ()'s. {: Comm...