Pulling out column extraction code