Extract the xample parsing code into a module