refactor Airbrake class