Make `calculate_columns()` public.