Styling changes.

Internals change only.

- Don't do _methods anymore.
- Rename encode_params to process_params.
- Fix the method definition of process_params.