Fix some old calls to magic_foo_params as class methods.