refactor: extract variable
work in package directory first, saves some path prefixes; prerequisite for #4