take the 'shared' flag into account

when determining if it's necessary to propagate the command to replicas or not