Moves the columns code into a separate module