Refactoring: integration with bunsan::error.