Refactoring update of ci statuses