Update some more objective functions to use the parameters mechanism.