Separated the directive parsers from the IO module into parsers.js