Q was there from day one so Hurley had been on script since 1966. He only died in 2015. He lived 76 years.
His bio says he was a term time “show runner”. So that wouldn’t surprise me. Could be he participated in the make over of Q for STNG.