Refactoring HipChat part.