Moved code into include file
Moved code into include file

MarcJAndersen/poc-analysis-results-metadata,MarcJAndersen/poc-analysis-results-metadata,MarcJAndersen/poc-analysis-results-metadata,MarcJAndersen/poc-analysis-results-metadata