[#1028] Moved `private def parsing` in the Formatter trait so it can be used for custom formatters

Currently only Play's internal formatters can use it