Get rid of this method and use the `ToParametersDictionary` method instead.