Extract the preparation of projection location data into a separate
function