Extracted the ParserRegistry functionality to a separate class; refactored code for registry change.