Made quex a templated utility and moved it to utilities