Team Fortress was a mod for Quake, and Valve hired the mod team to build the sequel based on Source. That doesn't make it less of a major development.
Team Fortress was a mod for Quake before HL1 was a twinkle in Gaben's eye. TFC was someone saying "that sure was a fun gameplay mode, but I can't get anyone to load Q1 any more... maybe I'll recreate the same thing over again"