This stuff should disappear into the wrappers, delegate the parsing to them.