Extracted campaigns list logic in a new file