Heh - I'm used to the god method being a giant switch parser :smile: 

As I've been working with this today, I'm thinking that the best refactor would be to create per-directive objects, classed based on their values - parse, render, validate all on those. Which thought led to the "is there a HTTP header *value* parser" question.