Minor refactoring for 2.4 to make it easier to reuse functionality outside context of Jackson module