Refactor eliminate_column