Ancient 'paint factory' unearthed