Moves generate_sources into the Source model