Splitting up compile preparation routines