Made parsing methods a little DRYer.

The call to TomlParser.parse is now only made in one place.