Moved span begin-end adjustment from annotations#annotations to annotations_helper#get_annotations_for_json