Simplify implementation of expansion paths.