refactor origin processing into its own transformer class. api change: lookup_keys becomes path_keys