Refactor Bugzilla-interfacing code.