Move column list detection to utility class

See #228 and #240.