Moved view helper factories out of config