Refactoring some methods in ColumnValue class