Remove unused create function in lib/error.js