Introduce `.calculate_max_columns()`.