Move parser callback code into dedicated methods.