Move reusable logic to Bugsnag directory.