Remove duplicate barLength function

We had a barLength and a colBarLength method. This way, we can
consolidate them together.