It doesn't need to be anything fancy like that. Just write some function that examines the frequency string and produces the right offset object. I figure there's still a place that hashes offsets to get their string names -- that should be removed (if it still exists) and ensure that all of the offsets know what their name is (if any).