It looks like this might already be happening in `swagger.js#_register` and so wouldn't be necessary here would it?