Minor refactor of job logic in the controller (not ready)

So that execute_launch_config will be easier to read, since all the job logic will be self contained.