MDL-41283 report_participation: moved code to locallib