Having just one function(error) method outermost would make code short and readable, we should remove code where error handling is exactly same.