Move default proxy code to model from lib/NodeModel