De-duplicate 'getFreedomSource()' from multiple test files into the util file.