state: remove MachineJobFromParams helper

`MachineJobFromParams` forces `state` to depend on `apiserver/params` for its input parameters.

Ideally params should own these helpers, but that would require it to depend on state, which would currently cause an import loop.

Instead move the function to the calling packages temporarily.