Extracting common functions in Report 2a