Gamma-ray burst host galaxies: A legacy approach