Refactor preprocessing to use intermediary aka tmp - enables deployment to multiple targets e.g. prd and uat