Break out subtarget initialization that dependent variables need into
a separate function and clean up calling convention for helper function.