Extract `converter.js` into a separate module