Move get_source_expressions into its own file, fix a small bug in the
column adjustment code.