Extracted the customization logic to a class that is instantiated in core.js. The instance is passed to the validator and the editors