Cleaned up scrollbars#_updateBar to improve maintainability and coverage