Reads "per reward field" header in row 4 to find territory columns,
then extracts territory names from row 5. Falls back to default list
if detection fails. Removes REWARDS_FACTORS from config.py.
refactor: split monolith into config, parse_excel, build_network, app