Simplify job.register_dependencies.