Moves get_columns and get_relations to helpers.py.