Refactors `Stubs` & introduce the `'methods'` option to set some endpoints.